/**
 * Created by kc on 16/6/5.
 */

var envjson     = require('../servertype.json');
var DEV = {
	murl:'https://prod.bearworker.com',
	wechat:{
		appid:'wx2bdd055c7d4b4b66',
		appkey:'581e1b1e90fa438e5f5067a4de09ac1e',//key为在微信商户平台(pay.weixin.qq.com)-->账户设置-->API安全-->密钥设置
		secret:'bdd159981a13733abf732920987a7d83',
		mchid:'1369080602',
        notify_url:'https://prod.bearworker.com/order/paynotify',
		auth_url:'https://open.weixin.qq.com/connect/oauth2/authorize?appid=(appid)&redirect_uri=(redirect_uri)&response_type=code&scope=(scope)&state=(state)#wechat_redirect'
	},
	redis:{
		default: {
			host: "192.168.124.5",
			port: 6379,
            pass:'zxlredis'
		}
	},
	mysql:{
        connectionLimit:10,
        host:'192.168.124.5',
        post:'3306',
        user:'admin',
        password:'1qaz@WSX',
        database:'wxshop',
        charset:'utf8mb4',
        debug: true
	}
};

var PRODUCTION = {
    murl:'https://shop.ramyun.cn',
    wechat:{
        appid:'wx2bdd055c7d4b4b66',
        appkey:'581e1b1e90fa438e5f5067a4de09ac1e',//key为在微信商户平台(pay.weixin.qq.com)-->账户设置-->API安全-->密钥设置
        secret:'bdd159981a13733abf732920987a7d83',
        mchid:'1369080602',
        notify_url:'https://shop.ramyun.cn/order/paynotify',
        auth_url:'https://open.weixin.qq.com/connect/oauth2/authorize?appid=(appid)&redirect_uri=(redirect_uri)&response_type=code&scope=(scope)&state=(state)#wechat_redirect'
    },
    redis:{
        default: {
            host: "127.0.0.1",
            port: 6379,
            pass:'zxlredis'
        }
    },
    mysql:{
        connectionLimit:10,
        host:'127.0.0.1',
        post:'3306',
        user:'admin',
        password:'1qaz@WSX',
        database:'wxshop',
        charset:'utf8mb4',
        debug:false
    }
};

if(envjson.device==="test"){
	module.exports = DEV;
}else{
	module.exports = PRODUCTION;
}